package com.teacher.hong.service.impl;

import com.teacher.hong.dao.BorrowRecordDao;
import com.teacher.hong.entity.BorrowRecord;
import com.teacher.hong.service.IBorrowRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;

@Service
public class BorrowRecordServiceImpl implements IBorrowRecordService {

    @Resource
    BorrowRecordDao borrowRecordDao;

    @Override
    public boolean record(BorrowRecord borrowRecord) throws SQLException {
        return borrowRecordDao.insert(borrowRecord) > 0;
    }
}
